﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SampleApp.Domain;

namespace SampleApp.Service
{
    public interface ISysUserService
    {
        SysUser GetSysUserByCode(string userCode);
        List<string> GetRoleListByUser(string userCode);
        List<SysUser> GetSysUserListByDept(string deptCode);
        List<SysUser> GetSysUserListFromDatabase();
        List<SysUser> GetSysUserList();
        void CreateSysUser(SysUser sysUser);
        void UpdateSysUser(SysUser sysUser);
        void UpdatePartialSysUser(SysUser sysUser);
        void DeleteSysUser(string userCode);
        void SetUserRole(string userCode, List<string> roleList);

        bool CheckUserPassword(string userCode, string password);
        void SetUserPassword(string userCode, string passwordNew);

    }
}
